<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      console.log(Math.random()); //取[0,1)随机数
      console.log(Math.max(1, 2, 3)); //3 取最大值
      console.log(Math.min(1, 2, 3)); //1 取最小值
      console.log(Math.pow(2, 3)); //8 幂次方
      console.log(2 ** 3); //8
    </script>
  </body>
</html>
